<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>


    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <script th:src="@{/js/jquery-2.1.4.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <!-- CSRF -->
<!--    <meta name="_csrf" th:content="${_csrf.token}"/>
    &lt;!&ndash; default header name is X-CSRF-TOKEN &ndash;&gt;
    <meta name="_csrf_header" th:content="${_csrf.headerName}"/>-->
</head>
<body>
<div class="panel panel-primary">
    <div class="panel-body">
        <table class="table table-bordered">
            <caption>购物车列表</caption>
            <thead>
            <tr>
                <th>ID</th>
                <th>名称</th>
                <th>价格</th>
                <th>数量</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="p:${cartList}">
                <td>
                    <a th:href="@{'/product/'+${p.product_id}}" th:text="${p.id}"></a>
                </td>
                <td th:text="${p.product_name}">Bangalore</td>
                <td th:text="${p.product_price}">560001</td>
                <td th:text="${p.product_num}">20</td>
            </tr>
            </tbody>
        </table>

    </div>
</div>
</body></html>